<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<div id="app">
    {{name}}
    <br>
    {{1+1}}
    <br>
    {{flag ? "喜欢我"  "不喜欢我"}}
    <!--插值闪烁-->
    <br>
    v-text:<span v-text="name"></span>
    <br>
    v-html:<span v-html="name"></span>
</div>


<script src="./node_modules/vue/dist/vue.js">
</script>
<script>
    var dataObj = {
        name: "<h1>刘德华</h1>",
        num: 0 ,
        flag: false
    };
    //双向绑定
    var vm = new Vue({
        el: "#app",
        data:dataObj,
    });
</script>
</body>
</html>